package com.stud.mc.convert;

import com.stud.mc.domain.Repository;
import com.stud.mc.dto.RepositoryDTO;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface Convertor {

    Convertor INSTANCE = Mappers.getMapper(Convertor.class);

    RepositoryDTO convert(Repository req);

    Repository convert(RepositoryDTO req);
}